﻿using System;
using System.Collections.Generic;
using System.Text;

namespace StockTrader.BusinessService.DataContract.Mortgate
{
    public class ContractData
    {
        public string ContractNo { set; get; }
        public string CustomerID { get; set; }
        public DateTime StartDate { set; get; }
        public DateTime EndDate { set; get; }
        public decimal Fee { set; get; }
        public decimal PenaltyFee { set; get; }
        public decimal ProcessFee { set; get; }
        public int ContractType { get; set; }
        public decimal ContractValue { set; get; }
        public string OriginalContract { set; get; }
        public string AccountNo { get; set; }


        public ContractData() { }
        public ContractData(string contractno, string customerid, DateTime from, DateTime to, decimal amount, decimal fee, decimal penalty, decimal processfee, int type, string original, string accountno)
        {
            ContractNo = contractno;
            CustomerID = customerid;
            StartDate = from;
            EndDate = to;
            ContractValue = amount;
            Fee = Fee;
            PenaltyFee = penalty;
            ContractType = type;
            ProcessFee = processfee;
            OriginalContract = original;
            AccountNo = accountno;
        }

        public FeeData CalculateFee()
        {
            return null;
        }
    }
}
